package com.yc.Matrix;

import com.yc.Matrix.single.SerialMultiplier;

public class Test1_SerialMatrix {
    public static void main(String[] args) {
        //生成两个矩阵
        double matrix1[][] = MatrixGenerator.generator(2000,2000);
        double matrix2[][] = MatrixGenerator.generator(2000,2000);

        //结果矩阵
        double result[][]=new double[matrix1.length][matrix2[0].length];

        long start,end;
        start=System.currentTimeMillis();

        SerialMultiplier.multiply(matrix1,matrix2,result);

        end=System.currentTimeMillis();
        System.out.println("串行计算矩阵乘法的时间:"+(end-start));


    }
}
